﻿<!DOCTYPE HTML>
<html>
<head>
    <title>Smith Tabs Demo</title>
    <link href="smithtabs.css" rel="stylesheet" type="text/css" />
    <script src="smithtabs.js" type="text/javascript"></script>
    <script type="text/javascript">
        var t1 = null;
        window.onload = function () {
            t1 = new SmithTabs('tabContainer1');
            t1.append('tabPage1', 'Page1');
            t1.append('tabPage2', 'Page2');
            t1.append('tabPage3', 'Page3');
            t1.select(0);
        }
    </script>
    <style type="text/css">
    body{ color:#393939; font-family: 'Segoe UI', Verdana, Arial, Tahoma; font-size: 13px; margin:0; padding:10px 20px; }
    h1,h2,h3,h4,h5,h6{ line-height:normal; margin:0; } h1{ font-size:18px; padding:8px 0; } h3{ font-size: 13px; padding:5px 0; } p{ margin:0; padding:3px 0; }
    input{ margin:5px; padding:2px 3px; } span{ margin-right:10px; }
    .section{ border-bottom:1px dashed #efefef; margin:5px 0 0 0; padding:10px 0; }
    .code{ background:#efefef; color:#090909; font-family:Consolas, 'Courier New'; font-size:12px; display:block; line-height:20px; margin:5px 0; padding:8px; }
    .tab{ width:18px; }.footer{ margin:20px 0 160px 0;}
    </style>
</head>
<body>
    <h1>Smith Tabs</h1>
    <p>
        <span>Author: John Smith</span>
        <span>Version: 1</span>
        <span>License: GPL</span>
    </p>
    <div>
        <p>Smith Tabs is to group divs into a tab control.</p>
        <p>To use this control, first include the css file &quot;smithtabs.css&quot; and javascript file &quot;smithtabs.js&quot; in the head of your html page.</p>
        <div class="code">        
            &lt;link href=&quot;smithtabs.css&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;<br />
            &lt;script src=&quot;smithtabs.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
        </div>
    </div>
    <div class="section">
        <h3>Example 1</h3>
        <p>Make tab control.</p>
        <div class="code">
            &lt;script type=&quot;text/javascript&quot;&gt;<br />
            &nbsp;&nbsp;&nbsp; var t1 = null;<br />
            &nbsp;&nbsp;&nbsp; window.onload = function () {<br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t1 = new SmithTabs(&#39;tabContainer1&#39;);<br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t1.append(&#39;tabPage1&#39;, &#39;Page1&#39;);<br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t1.append(&#39;tabPage2&#39;, &#39;Page2&#39;);<br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t1.append(&#39;tabPage3&#39;, &#39;Page3&#39;);<br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t1.select(0);<br />
            &nbsp;&nbsp;&nbsp; }<br />
            &lt;/script&gt;</div>
        <div id="tabContainer1"></div>
        <div id="tabPage1">
            <p><strong>Tab Page 1</strong></p>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor 
            incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
            nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
            Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 
            fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 
            culpa qui officia deserunt mollit anim id est laborum.
            Aliquam commodo ullamcorper erat. Nullam vel justo in neque porttitor laoreet. 
            Aenean lacus dui, consequat eu, adipiscing eget, nonummy non, nisi. Morbi nunc est, 
            dignissim non, ornare sed, luctus eu, massa. Vivamus eget quam. Vivamus tincidunt 
            diam nec urna. Curabitur velit. Lorem ipsum dolor sit amet.</p></div>
        <div id="tabPage2">
            <p><strong>Tab Page 2</strong></p>
            <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem 
            accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo 
            inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo 
            enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia 
            consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque 
            porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci 
            velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore 
            magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum 
            exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi 
            consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit 
            esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo 
            voluptas nulla pariatur?</p></div>
        <div id="tabPage3">
            <p><strong>Tab Page 3</strong></p>
            <p>At vero eos et accusamus et iusto odio dignissimos ducimus qui 
            blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas 
            molestias excepturi sint occaecati cupiditate non provident, similique sunt in 
            culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et 
            harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum 
            soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime 
            placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. 
            Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus 
            saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. 
            Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis 
            voluptatibus maiores alias consequatur aut perferendis doloribus asperiores 
            repellat. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, 
            consectetur, adipisci velit...</p></div>
    </div>
    <div class="footer">        
        <p><strong>Any help and suggestion for improving this control is welcome!</strong></p>
        <p>you can contact me with this email: <a href="mailto:john.smith.17th@gmail.com">john.smith.17th@gmail.com</a></p>
        <p>Last edit at 2011/07/16 by John Smith.</p>
    </div>
</body>
</html>
